package com.synjones.wschool.face.serviceImpl;

import com.synjones.wschool.face.domain.OrderMeal;
import com.synjones.wschool.face.mapper.OrderMealMapper;
import com.synjones.wschool.face.service.OrderMealService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

/**
 * Created by 24398 on 2018/7/27.
 */
@Service
@Slf4j
public class OrderMealServiceImpl implements OrderMealService{
    @Resource
    private OrderMealMapper orderMealMapper;


    @Override
    public List<OrderMeal> listByIds(List<Long> orderMealIds) {
        if(orderMealIds == null || orderMealIds.isEmpty()){
            return Collections.emptyList();
        }
        List<OrderMeal> orderMeals = this.orderMealMapper.listByIds(orderMealIds);
        return orderMeals;
    }
}
